package com.java.base.exercise.current.selfcache.imooccache2;


import java.util.concurrent.TimeUnit;

/**
 * @Author RenPu
 * @Date 2021/9/20 19:56
 * @Version 1.0
 * @Description: 实现装饰者模式接口，进行业务逻辑的解耦
 **/
public class ExceptionFuncation implements Comtable<String, Integer> {

    @Override
    public Integer compter(String arg) throws InterruptedException {

        TimeUnit.SECONDS.sleep(5);
        return Integer.valueOf(arg);
    }
}
